<?php

namespace app\controller\v1\api;

use app\BaseController;
use app\common\Send;
use think\App;
use think\Request;
use app\service\SysIntroService;
class SysIntro extends BaseController
{
    use  Send;
    protected $sysIntroService;
    public function __construct(App $app, SysIntroService $sysIntroService)
    {
        parent::__construct($app);
        $this->sysIntroService = $sysIntroService;
    }

    public function getByMark()
    {
        $mark = request()->param('mark');
        return self::success($this->sysIntroService->getByMark($mark));
    }

    public function read($id)
    {
        return self::success($this->sysIntroService->read($id));
    }
}
